package resources;

import java.util.Calendar;
import java.text.SimpleDateFormat;

public class DateUtilities {

	private static String now(String dateFormat) {
		Calendar cal = Calendar.getInstance();
		SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
		return sdf.format(cal.getTime());

	}

	public String getDateTime(String format) {
		/*
		 * Available formats:
		 * dd MMMMM yyyy
		 * yyyyMMdd
		 * dd.MM.yy
		 * MM/dd/yy
		 * yyyy.MM.dd G 'at' hh:mm:ss z
		 * EEE, MMM d, ''yy
		 * h:mm a
		 * H:mm:ss:SSS
		 * K:mm a,z
		 * yyyy.MMMMM.dd GGG hh:mm aaa
		 */
		@SuppressWarnings("unused")
		String date="";
		return date = DateUtilities.now(format);
		
	}
}
